package com.agu.mgt.sys.service;

import java.util.List;
import java.util.Map;

import com.agu.mgt.sys.dto.CodeVo;
import com.agu.utils.Query;
import com.github.pagehelper.Page;

/**
 * 代码生成器
 * 
 */
public interface SysGeneratorService {
	
	List<Map<String, Object>> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	Map<String, String> queryTable(String tableName);
	
	List<Map<String, String>> queryColumns(String tableName);
	
	/**
	 * 生成代码
	 */
	byte[] generatorCode(String[] tableNames);
	
	byte[] generatorCode(CodeVo cc);

	Page<Map<String, Object>> queryPageList(Query query);
}
